(function(doc, win) {
    var docEl = doc.documentElement,
        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
        recalc = function() {
            var clientWidth = docEl.clientWidth;
            if(!clientWidth) return;
            if(clientWidth >= 750) {
                docEl.style.fontSize = '100px';
            } else {
                docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
            }
        };

    if(!doc.addEventListener) return;
    win.addEventListener(resizeEvt, recalc, false);
    doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);
Array.prototype.contains = function ( needle ) {
  for (i in this) {
    if (this[i] == needle) return true;
  }
  return false;
};
Date.prototype.isWeek = function(showWeek){   
    var myDate= this;
    if (showWeek){   
        var Week = ['日','一','二','三','四','五','六'];  
        var str = Week[myDate.getDay()];  
    }  
    return str;  
}  



API_DOMAIN = '/apis/index.php?';//http://admin.2bekey.com/index.php?
money = 0;

